#ifndef HTTPTOOL_WIN_H
#define HTTPTOOL_WIN_H

#include <QMainWindow>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>
#include <QHttpMultiPart>
#include <QDebug>

#define PRTLOG()    qDebug()<<__FILE__<<__FUNCTION__<<"Line:"<<__LINE__<<":"

namespace Ui {
class httpTool_win;
}
typedef struct gHttpStruct{
    char Method[32];
    char IP[256];
    char URL[256];
    int  Port;
    char postData[4096];
    int  https;
}g_httpStruct;
class httpTool_win : public QMainWindow
{
    Q_OBJECT

public:
    explicit httpTool_win(QWidget *parent = 0);
    ~httpTool_win();

private slots:
    void on_httpSend_pBt_clicked();
    void http_replyFinish_Slot();
    void http_replyErrorStr_slot();
    void on_clear_pBt_clicked();

private:
    Ui::httpTool_win *ui;
    QNetworkAccessManager g_httpRecver;
    QNetworkReply *g_httpRply=nullptr;

    void http_get_inData(g_httpStruct * httpPara);
    void http_clear_inData();
    void http_clear_outData();

};

#endif // HTTPTOOL_WIN_H
